package syntax_tree;

import visitor.TypeVisitor;
import visitor.Visitor;

public class TMethodDecl {

	
	public TType tt;
	public TIdentifier id;
	public TFormalStar fl;
	public TVarDeclStar vds;
	public TStatementStar st;
	public TExp ex;
	
	public TMethodDecl(TType tt, TIdentifier id, TFormalStar fl, TVarDeclStar vds,
					   TStatementStar st, TExp ex){
		this.tt = tt;
		this.id = id;
		this.fl = fl;
		this.vds = vds;
		this.st = st;
		this.ex = ex;
	}
	
	public void accept(Visitor v) {
	    v.visit(this);
	}

	public TType accept(TypeVisitor v) {
	    return v.visit(this);
	}
	
}
